package com.canyou.archives.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.canyou.base.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 设备档案
 * </p>
 *
 * @author canyou
 * @since 2021-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("equ_archives")
@ApiModel(value="Archives对象", description="设备档案")
public class Archives extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备分类id")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty(value = "设备编号")
    @TableField("number")
    private String number;

    @ApiModelProperty(value = "设备名称")
    @TableField("aname")
    private String aname;

    @ApiModelProperty(value = "使用状态：0未启用，1使用中，2空闲，3维修中，4报废")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "使用人员")
    @TableField("personnel")
    private Long personnel;

    @ApiModelProperty(value = "拥有组织")
    @TableField("organization")
    private Long organization;

    @ApiModelProperty(value = "拥有部门")
    @TableField("department")
    private Long department;

    @ApiModelProperty(value = "设备图片")
    @TableField("picture")
    private String picture;

    @ApiModelProperty(value = "财务状态：0未入账，1已入账")
    @TableField("financial_registration")
    private Boolean financialRegistration;

    @ApiModelProperty(value = "SN码")
    @TableField("sn_number")
    private String snNumber;

    @ApiModelProperty(value = "保修政策")
    @TableField("warranty_policy")
    private String warrantyPolicy;

    @ApiModelProperty(value = "采购日期")
    @TableField(value = "purchase_date")
    private Date purchaseDate;

    @ApiModelProperty(value = "采购金额")
    @TableField(value = "purchase_amount")
    private Double purchaseAmount;

    @ApiModelProperty(value = "采购地点")
    @TableField("purchase_place")
    private String purchasePlace;


}
